<%--
  Created by IntelliJ IDEA.
  User: ChadZhao
  Date: 12-2-2
  Time: 上午11:34
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title><s:property value="articleTitle"/></title>
    <link href="<c:url value='/styles/sub.css'/>" rel="stylesheet" type="text/css">
</head>
<body>
<jsp:include page="/top.jsp"/>
<table width="1000"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="310" align="left" valign="top">
        <jsp:include page="/menu.jsp"/>
    </td>
    <td align="right" valign="top">
        <table width="670"  border="0" cellpadding="0" cellspacing="0" class="bk4">
      <tr>
        <td bgcolor="#f1f1f0"><jsp:include page="/pathmessage.jsp"/></td>
      </tr>
      <tr>
        <td><div class="title"><s:property value="articleTitle"/></div>
          <hr size="1">
          <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="fb">
            <tr align="center">
              <td width="33%">发布时间：<s:property value="articleTime"/>  </td>
              <td width="34%">字 体：【<a href="#" onClick="changeFont(1);return false;">大</a>&nbsp;&nbsp;<a href="#" onClick="changeFont(2);return false;">中</a>&nbsp;&nbsp;<a href="#" onClick="changeFont(3);return false;">小</a>】</td>
              <td>访问次数：<s:property value="readTimes"/></td>
            </tr>
          </table>
            <div id="newsBodyTd">
              <s:property value="contextArea" escape="false"/>
            </div>
            <s:if test="attachList!=null">
                附件：<div style="padding-left:20px;">
                <s:iterator value="attachList" id="al" status="alstat">
                    <a href="<c:url value="/downloadAttach.do?fileId="/><s:property value="#al.ATTACHID"/>" target="downframe" style="text-decoration:none;font-size:10.5pt;"><s:property value="#al.ATTACHNAME"/></a><br>
                </s:iterator>
                    </div>
            </s:if>
        </td>
      </tr>
      </tr>
    </table></td>
  </tr>
</table>
<iframe name="downframe" id="downframe" style="display:none;"></iframe>
<jsp:include page="/bottom.jsp"/>
</body>
<script type="text/javascript">

    changeFont(2);

    function changeFont(type){
        var ff = "14pt";
        if(type == 2) ff = "12pt";
        else if(type == 3) ff = "10.5pt";
        var oTd = document.getElementById("newsBodyTd");
        oTd.style.fontSize = ff;
        var oAll = oTd.all;
        for(var i=0;i<oAll.length;i++) {
            oAll[i].style.fontSize = ff;
        }
    }
</script>
</html>